package com.yq.ylmall.client.payment;

import com.yq.ylmall.dto.order.OrderInfoDto;
import com.yq.ylmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Project: yourlife
 * @Name: CartFeignClient
 * @Author: Jack_Li
 * @Date: 2024/6/16 13:32
 */

@FeignClient(value = "ylmall-service-wechat-payment")
public interface PaymentFeignClient {

    @PostMapping("/api/payment/wechat/native")
    Result nativePay(@RequestBody OrderInfoDto orderInfoDto);

}
